// src/api/dialog.js
import instance from '../utils/request.js';

export const createDialog = (dialog) => instance.post('/dialog/insert', dialog);
export const getDialogsByUserId = (userId) => instance.get(`/dialog/selectByUserId?userId=${userId}`);
export const deleteDialog = (dialogId) => instance.get(`/dialog/delete?dialogId=${dialogId}`);